package com.linln.admin.app.validator;

import lombok.Data;
import org.hibernate.validator.constraints.URL;

import java.io.Serializable;
import javax.validation.constraints.NotEmpty;

/**
 * @author 陶富成
 * @date 2021/07/08
 */
@Data
public class InfoValid implements Serializable {
    @NotEmpty(message = "项目名称不能为空")
    private String display_name;
    @NotEmpty(message = "代码仓库类型不能为空")
    private String repo_type;
    @NotEmpty(message = "代码仓库URL不能为空")
    @URL(message = "URL地址格式不对")
    private String repo_url;
}